#ifndef _VIDEO_BLOB_DETECTOR_
#define _VIDEO_BLOB_DETECTOR_


#include "ofMain.h"
#include "ofCvMain.h"
#include "videoBlob.h"

#define MAX_NUM_BLOBS			10

class videoBlobDetector{
	
	public:
		
		void setup(int w, int h);
		void update(ofCvColorImage video);
		void takeSnapshot();
		void draw();
		void drawDetection(float x, float y);
		
		videoBlob				vidBlob[MAX_NUM_BLOBS];
		int 					nBlobs;
		
		ofCvColorImage			videoImageColor;		// should be something else, like last 5 frames...
		ofCvGrayscaleImage		videoImageGray;
		ofCvGrayscaleImage		grayTemp;
		ofImage					cornerMaskImage;
		ofCvGrayscaleImage		cornerMaskCv;
		
		int 					width;
		int 					height;
		
		int 					maxBlobSize;
		int 					minBlobSize;
		
		ofCvContourFinder		contourFinder;
		
		
		
};

#endif	
